Optimal. Leaf size=174 \[ -\frac {63 b^5 \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {x}}{\sqrt {a x+b \sqrt {x}}}\right )}{64 a^{11/2}}+\frac {63 b^4 \sqrt {a x+b \sqrt {x}}}{64 a^5}-\frac {21 b^3 \sqrt {x} \sqrt {a x+b \sqrt {x}}}{32 a^4}+\frac {21 b^2 x \sqrt {a x+b \sqrt {x}}}{40 a^3}-\frac {9 b x^{3/2} \sqrt {a x+b \sqrt {x}}}{20 a^2}+\frac {2 x^2 \sqrt {a x+b \sqrt {x}}}{5 a} \]
________________________________________________________________________________________
Rubi [A] time = 0.15, antiderivative size = 174, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 5, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.263, Rules used = {2018, 670, 640, 620, 206} \begin {gather*} \frac {63 b^4 \sqrt {a x+b \sqrt {x}}}{64 a^5}-\frac {21 b^3 \sqrt {x} \sqrt {a x+b \sqrt {x}}}{32 a^4}+\frac {21 b^2 x \sqrt {a x+b \sqrt {x}}}{40 a^3}-\frac {63 b^5 \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {x}}{\sqrt {a x+b \sqrt {x}}}\right )}{64 a^{11/2}}-\frac {9 b x^{3/2} \sqrt {a x+b \sqrt {x}}}{20 a^2}+\frac {2 x^2 \sqrt {a x+b \sqrt {x}}}{5 a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 620
Rule 640
Rule 670
Rule 2018
Rubi steps
\begin {align*} \int \frac {x^2}{\sqrt {b \sqrt {x}+a x}} \, dx &=2 \operatorname {Subst}\left (\int \frac {x^5}{\sqrt {b x+a x^2}} \, dx,x,\sqrt {x}\right )\\ &=\frac {2 x^2 \sqrt {b \sqrt {x}+a x}}{5 a}-\frac {(9 b) \operatorname {Subst}\left (\int \frac {x^4}{\sqrt {b x+a x^2}} \, dx,x,\sqrt {x}\right )}{5 a}\\ &=-\frac {9 b x^{3/2} \sqrt {b \sqrt {x}+a x}}{20 a^2}+\frac {2 x^2 \sqrt {b \sqrt {x}+a x}}{5 a}+\frac {\left (63 b^2\right ) \operatorname {Subst}\left (\int \frac {x^3}{\sqrt {b x+a x^2}} \, dx,x,\sqrt {x}\right )}{40 a^2}\\ &=\frac {21 b^2 x \sqrt {b \sqrt {x}+a x}}{40 a^3}-\frac {9 b x^{3/2} \sqrt {b \sqrt {x}+a x}}{20 a^2}+\frac {2 x^2 \sqrt {b \sqrt {x}+a x}}{5 a}-\frac {\left (21 b^3\right ) \operatorname {Subst}\left (\int \frac {x^2}{\sqrt {b x+a x^2}} \, dx,x,\sqrt {x}\right )}{16 a^3}\\ &=-\frac {21 b^3 \sqrt {x} \sqrt {b \sqrt {x}+a x}}{32 a^4}+\frac {21 b^2 x \sqrt {b \sqrt {x}+a x}}{40 a^3}-\frac {9 b x^{3/2} \sqrt {b \sqrt {x}+a x}}{20 a^2}+\frac {2 x^2 \sqrt {b \sqrt {x}+a x}}{5 a}+\frac {\left (63 b^4\right ) \operatorname {Subst}\left (\int \frac {x}{\sqrt {b x+a x^2}} \, dx,x,\sqrt {x}\right )}{64 a^4}\\ &=\frac {63 b^4 \sqrt {b \sqrt {x}+a x}}{64 a^5}-\frac {21 b^3 \sqrt {x} \sqrt {b \sqrt {x}+a x}}{32 a^4}+\frac {21 b^2 x \sqrt {b \sqrt {x}+a x}}{40 a^3}-\frac {9 b x^{3/2} \sqrt {b \sqrt {x}+a x}}{20 a^2}+\frac {2 x^2 \sqrt {b \sqrt {x}+a x}}{5 a}-\frac {\left (63 b^5\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {b x+a x^2}} \, dx,x,\sqrt {x}\right )}{128 a^5}\\ &=\frac {63 b^4 \sqrt {b \sqrt {x}+a x}}{64 a^5}-\frac {21 b^3 \sqrt {x} \sqrt {b \sqrt {x}+a x}}{32 a^4}+\frac {21 b^2 x \sqrt {b \sqrt {x}+a x}}{40 a^3}-\frac {9 b x^{3/2} \sqrt {b \sqrt {x}+a x}}{20 a^2}+\frac {2 x^2 \sqrt {b \sqrt {x}+a x}}{5 a}-\frac {\left (63 b^5\right ) \operatorname {Subst}\left (\int \frac {1}{1-a x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt {b \sqrt {x}+a x}}\right )}{64 a^5}\\ &=\frac {63 b^4 \sqrt {b \sqrt {x}+a x}}{64 a^5}-\frac {21 b^3 \sqrt {x} \sqrt {b \sqrt {x}+a x}}{32 a^4}+\frac {21 b^2 x \sqrt {b \sqrt {x}+a x}}{40 a^3}-\frac {9 b x^{3/2} \sqrt {b \sqrt {x}+a x}}{20 a^2}+\frac {2 x^2 \sqrt {b \sqrt {x}+a x}}{5 a}-\frac {63 b^5 \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {x}}{\sqrt {b \sqrt {x}+a x}}\right )}{64 a^{11/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.19, size = 151, normalized size = 0.87 \begin {gather*} \frac {\left (a \sqrt {x}+b\right ) \left (\sqrt {a} \sqrt {x} \sqrt {\frac {a \sqrt {x}}{b}+1} \left (128 a^4 x^2-144 a^3 b x^{3/2}+168 a^2 b^2 x-210 a b^3 \sqrt {x}+315 b^4\right )-315 b^{9/2} \sqrt [4]{x} \sinh ^{-1}\left (\frac {\sqrt {a} \sqrt [4]{x}}{\sqrt {b}}\right )\right )}{320 a^{11/2} \sqrt {\frac {a \sqrt {x}}{b}+1} \sqrt {a x+b \sqrt {x}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.31, size = 113, normalized size = 0.65 \begin {gather*} \frac {63 b^5 \log \left (-2 \sqrt {a} \sqrt {a x+b \sqrt {x}}+2 a \sqrt {x}+b\right )}{128 a^{11/2}}+\frac {\sqrt {a x+b \sqrt {x}} \left (128 a^4 x^2-144 a^3 b x^{3/2}+168 a^2 b^2 x-210 a b^3 \sqrt {x}+315 b^4\right )}{320 a^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.29, size = 111, normalized size = 0.64 \begin {gather*} \frac {1}{320} \, \sqrt {a x + b \sqrt {x}} {\left (2 \, {\left (4 \, {\left (2 \, \sqrt {x} {\left (\frac {8 \, \sqrt {x}}{a} - \frac {9 \, b}{a^{2}}\right )} + \frac {21 \, b^{2}}{a^{3}}\right )} \sqrt {x} - \frac {105 \, b^{3}}{a^{4}}\right )} \sqrt {x} + \frac {315 \, b^{4}}{a^{5}}\right )} + \frac {63 \, b^{5} \log \left ({\left | -2 \, \sqrt {a} {\left (\sqrt {a} \sqrt {x} - \sqrt {a x + b \sqrt {x}}\right )} - b \right |}\right )}{128 \, a^{\frac {11}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.09, size = 223, normalized size = 1.28 \begin {gather*} \frac {\sqrt {a x +b \sqrt {x}}\, \left (-640 a \,b^{5} \ln \left (\frac {2 a \sqrt {x}+b +2 \sqrt {\left (a \sqrt {x}+b \right ) \sqrt {x}}\, \sqrt {a}}{2 \sqrt {a}}\right )+325 a \,b^{5} \ln \left (\frac {2 a \sqrt {x}+b +2 \sqrt {a x +b \sqrt {x}}\, \sqrt {a}}{2 \sqrt {a}}\right )-1300 \sqrt {a x +b \sqrt {x}}\, a^{\frac {5}{2}} b^{3} \sqrt {x}+256 \left (a x +b \sqrt {x}\right )^{\frac {3}{2}} a^{\frac {9}{2}} x +1280 \sqrt {\left (a \sqrt {x}+b \right ) \sqrt {x}}\, a^{\frac {3}{2}} b^{4}-650 \sqrt {a x +b \sqrt {x}}\, a^{\frac {3}{2}} b^{4}-544 \left (a x +b \sqrt {x}\right )^{\frac {3}{2}} a^{\frac {7}{2}} b \sqrt {x}+880 \left (a x +b \sqrt {x}\right )^{\frac {3}{2}} a^{\frac {5}{2}} b^{2}\right )}{640 \sqrt {\left (a \sqrt {x}+b \right ) \sqrt {x}}\, a^{\frac {13}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2}}{\sqrt {a x + b \sqrt {x}}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^2}{\sqrt {a\,x+b\,\sqrt {x}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2}}{\sqrt {a x + b \sqrt {x}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________